﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPFByCoreApp
{
    public class TestBoxAndUnBox
    {

        private static object a = 2;

        private static int b = 3;

        private static int c = 0;


        public static void Box()
        {
            a = b;
        }

        public static void UnBox()
        {
            b = (int)a;
        }


        public static void Set()
        {
            c = b;
        }


    }
}
